//package com.inspur.edp.bef.dtgenerator.core.uqConstraint;
//
//import com.inspur.edp.bef.api.action.validation.IValidationContext;
//import com.inspur.edp.bef.builtincomponents.UQConstraints.UQConstraintValidator;
//import com.inspur.edp.cef.generator.coreGenerator.base.entityGenerator.validations.Base.BaseValGenCtx;
//import com.inspur.edp.cef.generator.coreGenerator.base.entityGenerator.validations.Base.Methods.ValExecuteGenerator;
//import org.eclipse.jdt.core.dom.*;
//
//public class UQConstraintExecuteGenerator extends ValExecuteGenerator {
//  public UQConstraintExecuteGenerator(BaseValGenCtx valGenCtx) {
//    super(valGenCtx);
//  }
//
////  new UQConstraintValidator(compContext, change).Do();
//  @Override
//  protected Block buildMethodBody() {
//    Block block = ast.newBlock();
//    MethodInvocation methodInvocation=ast.newMethodInvocation();
//    methodInvocation.setName(ast.newSimpleName("Do"));
//
//    ClassInstanceCreation classInstanceCreation=ast.newClassInstanceCreation();
//    classInstanceCreation.setType(ast.newSimpleType(ast.newName(UQConstraintValidator.class.getTypeName())));
//    addImport(UQConstraintValidator.class.getTypeName());
//    CastExpression cast =ast.newCastExpression();
//    cast.setExpression(ast.newSimpleName(paramCompContext));
//    cast.setType(ast.newSimpleType(ast.newName(IValidationContext.class.getTypeName())));
//    classInstanceCreation.arguments().add(cast);
//    classInstanceCreation.arguments().add(ast.newSimpleName(paramCompchange));
//    methodInvocation.setExpression(classInstanceCreation);
//
//    ExpressionStatement expressionStatement=ast.newExpressionStatement(methodInvocation);
//    block.statements().add(expressionStatement);
//    return block;
//  }
//}
